package com.xjgc.rest.ao;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Map;

/**
 * @author: 小逗号
 * @date: 2023-11-28
 * @description:
 * @since:
 */
@Data
@NoArgsConstructor
public class JParam implements Serializable {
    /**
     * 原始请求数据
     */

    @JsonIgnore
    @XStreamOmitField
    private Map<String, Object> param;

    public JParam(Map<String, Object> param) {
        this.param = param;

    }

    @XStreamOmitField
    @NotBlank(message = "公司代码[orgCode]不能为空!")
    private String orgCode;

    @XStreamOmitField
    @NotBlank(message = "源业务系统[sourceSystem]不能为空!")
    private String sourceSystem;

    /**
     * 源业务系统请求流水号,
     * 用于源系统追溯中间库流转记录
     */
    @XStreamOmitField
    @NotBlank(message = "流水号[serialNo]不能为空!")
    private String serialNo;


}
